package com.autumn.oauth2.zero.domain.entities;

import javax.persistence.Column;

import com.autumn.mybatis.mapper.annotation.ColumnOrder;
import com.autumn.mybatis.mapper.annotation.Index;

/**
 * 
 * 驱动登录
 * 
 * @author 老码农 2018-04-09 22:53:02
 */
public abstract class AbstractUserLoginProvider extends AbstractUserChild {

	/**
	 * 
	 */
	private static final long serialVersionUID = -5966653583273081070L;

	@ColumnOrder(2)
	@Column(name = "login_provider", nullable = false)
	@Index
	private String loginProvider;
	@ColumnOrder(3)
	@Column(name = "provider_key", length = 255, nullable = false)
	@Index
	private String providerKey;

	/**
	 * 获取登录驱动提供者
	 * 
	 * @return
	 */
	public String getLoginProvider() {
		return loginProvider;
	}

	/**
	 * 设置登录驱动提供者
	 * 
	 * @param loginProvider
	 *            登录驱动
	 */
	public void setLoginProvider(String loginProvider) {
		this.loginProvider = loginProvider;
	}

	/**
	 * 获取驱动提供者key
	 * 
	 * @return
	 */
	public String getProviderKey() {
		return providerKey;
	}

	/**
	 * 设置驱动提供者key
	 * 
	 * @param providerKey
	 *            驱动key
	 */
	public void setProviderKey(String providerKey) {
		this.providerKey = providerKey;
	}

}
